<?php

namespace app\common\model\Business;
// 引入框架模型
use think\Model;

class Visit extends Model
{
    protected $name = "business_visit";

    protected $autoWriteTimestamp = true;

    protected $createTime = 'createtime';

    protected $updateTime = false;
    public function admin()
    {
        return $this->belongsTo('app\common\model\Admin','adminid','id',[],'LEFT')->setEagerlyType(0);
    }
    public function business()
    {
        return $this->belongsTo('app\common\model\Business\Business', 'busid', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}